package org.raftkv.raft.core.storage.exceptions;


import org.raftkv.raft.core.storage.impl.MemoryStorage;

/**
 * 一个 SnapOutOfDateException 由 Storage#createSnapshot 在请求的索引比存在的快照更落后时抛出。
 *
 * @author wzy
 * @see MemoryStorage#createSnapshot
 */
public class SnapOutOfDateException extends RuntimeException {

    public SnapOutOfDateException() {
        super("requested index is older than the existing snapshot");
    }

}
